package com.example.mapper;

import com.example.pojo.entity.CurriculumVitae;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

/**
 * 本文来演示
 *
 * @author 赵建云
 * @create 2023/10/30
 */
public interface CurriculumVitaeMapper {
    @Update("update curriculum_vitae set p_advantage=#{userGood} where js_id=#{jsId}")
    int updateUserGood(@Param("jsId") Integer jsId,@Param("userGood") String userGood);
    @Insert("insert into curriculum_vitae(js_id,p_advantage) value(#{jsId},#{userGood})")
    int saveUserGood(@Param("jsId") Integer jsId,@Param("userGood") String userGood);

    @Select("select * from curriculum_vitae where js_id=#{value}")
    CurriculumVitae findJsId(Integer jsId);
}
